package cm.tl.pms.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author: lwp
 * @createTime: 2024/12/30 11:05
 */
@AllArgsConstructor
@Getter
public enum QaCategoryEnum {
    DATA("服务介绍", "1"),
    PICTURE("平台介绍", "2"),
    DOCUMENT("基本信息", "3"),
    ;
    private String msg;
    private String code;

    public static String getCodeByMsg(String msg) {
        for (QaCategoryEnum value : values()) {
            if (value.getMsg().equals(msg)) {
                return value.getCode();
            }
        }
        return null;
    }


}
